// BaseEntity.java
package com.yourname.projectname.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

/**
 * 基础实体类，包含公共字段
 */
@Data
public abstract class BaseEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("created_at")
    private String createdAt;

    @TableField("updated_at")
    private String updatedAt;

    @TableLogic
    @TableField("deleted_at")
    private String deletedAt;
}
